home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS Toolkit
/
BBS Toolkit.iso
/
remote
/
rafm111.zip
/
USERON30.ZIP
/
USERON.DOC
< prev
next >
Wrap
Text File
|
1991-11-07
|
4KB
|
115 lines
-=( UserOn )=-
What is it:
===========
Useron does almost exacly the same as the useron function of RA 1.0. There's
only one single extra: Whenever a user has the 'external util/door' status
UserOn looks in the RA Directory for a file USERDOES.<NodeNr>. This file
may contain a more accurate description of which door that user entered.
RA only reserves a byte and 6 predefined messages for this purpose, and I
as a doorwrite would like to put the name of the program there.. Alas, this
is not possible with RA, so I wrote this little replacement.
Source code (pascal) for putting, reading and writing such a UserDoes file
is included.
How To:
=======
Simply replace the ShowUsers call with a type 7 call with on the optional
dataline:
<Path>UserOn.exe -T:*T -N:*N [-P:*P] [-SYSOP] [-LINES:<NoLines>] [-AKA]
[-NOS]
(The -P is only nessecary when you use a commport different from the one in the
Config.ra, the -N:*N should be there, as this program only makes sence in a
multiline RA setup)
-SYSOP shows the sysop regardless of the config.ra settings
-NOS turns local sound off
-AKA Show handles instead of names.
-Lines: Turns the message to other line option on, and defines the
maximal number of lines of a message.
That's all.
Programmers:
============
The USERDOES.<NodeNr> file is a simple textfile with only one line of text,
Maximal 70 characters long. (should be enough..;)
It's expected to be found in the directory where the RA environment variable
is pointing to. Note that the <NodeNr> part has NO leading zeros!
UserDoes.1 is a legal name
UserDoes.001 will never be found.
If you use the DoIt.Pas unit, things are simpler:
Put somewhere in the initialization part of your program the lines:
DoingWhat='Your text which has to appear';
SetDoingInfo(NodeNr);
And at the end of the program a line:
ClearDoingInfo(NodeNr);
Even more fun is to update the userdoes during the game, reflecting the
user's score...;) (RA-Pong, and Richard's Faassen's TETRA do this..)
CopyWrong: you are encouraged to include this program with your own programs
as long as you include the WHOLE package......
Using this program with existing utils and doors:
=================================================
Well, from a type 7 menuitem with out a batch you're out
of luck until (and IF) the author of the program supports this
way of showing his info. (Unless of course you use the Type 7 to
call a batchfile..;-)
From a type 15 things are easier, just put a line :
Echo <The text to appear> > c:\RA\userdoes.%1
into the batchfile and things should work! The %1 reflects the nodenr here.
At the end of the batch you can delete the file with a simple
del c:\ra\userdoes.%1
!!!! RA 1.10 !!!!
RA 1.10 stores the message files in the semafore directory! If you use
this directory, Useron will use it too for the USERDOES and the message
files.
Last words:
===========
Just in case: you're using this program at your own risk! Never will I accept
any responsibility for anything happening due to the behavior of this program!
This program is freeware. Do with it whatever you like. and if you are a
door-programmer yourself, consider supporting the idea.. After all,
when the useron info says something like:
> User having a good time playing multiline-tradewars
The odds are that other users jump in..;-)
Enjoy!
Gerhard